﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SapB1WebApp.Utils
{
    public enum DocType : ulong
    {
        ALL_DRAFT = 112,
        // ----------------------PURCHASE------------------------
        AP_INVOICE = 18,
        AP_CREDIT = 19,
        GOODS_RECEIPT_PO = 20,
        GOODS_RETURN = 21,
        PURCHASE_ORDER = 22,
        LANDED_COSTS = 69,
        PURCHASE_QUOTATION = 540000006,
        PURCHASE_REQUEST = 1470000113,
        // -------------------SALES------------------------------
        AR_INVOICE = 13,
        AR_CREDIT = 14,
        DELIVERY = 15,
        RETURN = 16,
        SALES_ORDER = 17,
        SALES_QUOTATION = 23,
        // ---------------------INVENTORY------------------------
        GOODS_RECEIPT = 59,
        GOODS_ISSUE = 60,
        TRANSFER = 67,
        TRANSFER_REQUEST = 1250000001,
        // -------------------PRODUCTION-------------------------
        PRODUCTION_ORDER = 202,
        // --------------------PAYMENT---------------------------
        INCOMING = 24,
        OUTGOING = 46,
        // -------------------SERVICES---------------------------
        SERVICECALLS = 191,
        // -------------------MASTER DATA------------------------
        EMPLOYEE = 171,
        BUSINESS_PARTNER = 2,
        ITEM = 4,
        CONTACT_PERSON = 11,
        USER = 12,
        SERIALNUMBER = 10000045,

        //----------------------MRP---------------------------
        SALES_FORECASTS = 198,

        //----------------------OTHERS---------------------------
        ATTACHMENT = 221,
        SALES_OPPORTUNITY = 97,
        ACTIVITY = 33,
        JOURNAL_ENTRY = 30,
        OTHERS = 1111111111
    }
    public static class ConvertDocType
    {
        public static string Get2String(this DocType doctype)
        {
            return ((ulong)doctype).ToString();
        }
    }
}